home *** CD-ROM | disk | FTP | other *** search
- Subject: Amiga Ghostscript for Intuition & RETINA
- Class: util/gnu
- Uploader: ah@rbg.informatik.th-darmstadt.de
-
-
- This file is part of Ghostscript.
-
- Ghostscript is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
- to anyone for the consequences of using it or for whether it serves any
- particular purpose or works at all, unless he says so in writing. Refer
- to the Ghostscript General Public License for full details.
-
- Everyone is granted permission to copy, modify and redistribute
- Ghostscript, but only under the conditions described in the Ghostscript
- General Public License. A copy of this license is supposed to have been
- given to you along with Ghostscript so you can know your rights and
- responsibilities. It should be in a file named COPYING. Among other
- things, the copyright notice and this notice must be preserved on all
- copies.
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- ***********************************************************************
- * This file describes the additional device drivers of the amiga port *
- ***********************************************************************
-
-
- The 'intui' device
- ------------------
-
- The intui device was written by Markus (Landi) Landgraf.
-
- The intui device is similar to the X device on UNIX stations. When
- ghostscript is invoked with this device chosen, it opens an Amiga
- Intuition window with system gadgets and two scroller Gadgets. The
- scroller gadgets are meant to scroll through an output that's bigger
- than the window ( this is normally the case, because the standard size
- of the intuition device is dinA4, wich is bigger than for example a
- 15''-Monitor). To use the intui device as default, set the environment
- variable 'GS_DEVICE' to 'intui'. The intui device should not disturb
- the workbench colors, so it was only possible to make a black and
- white display of the output with the darkest workbench color as black
- and the brightest as white. When the output in the window seems
- bended, the default settings for device-resolution are no more valid,
- the user has to compute it from the size and pixels of her/his display
- and set it by the -r option of ghostscript (see use.doc).
-
- -------------------------------------------------------------------
-
- NAME
-
- ilbm-retina.doc
-
- DATE
-
- Sep 17,1993
-
- DESCRIPTION
-
- Documentation for ILBM and RETINA drivers
-
- AUTHOR
-
- Andreas Heitmann
- Kasseler Str. 67
- 34308 Emstal 1
- Germany
-
- EMAIL
-
- andreas@gotcha.swb.de
- andreas@ws-01.iset-kassel.de
- ah@hrz-serv7.hrz.uni-kassel.de
- ah@rbg.informatik.th-darmstadt.de
- heitmann@crunch.ikp.physik.th-darmstadt.de
- (still collecting accounts...)
-
- RETINA DOCUMENTATION
-
- The RETINA driver for Ghostscript is only useful for the Amiga
- platform, because the RETINA-hardware does only exist for this
- computer. The driver supports all display modes, but there are still
- bugs in the retina.library which make the 16 bit mode useless.
-
- To display a Postscript picture on a RETINA screen you have to set
- the output device using the Ghostscript command line switch
-
- -sDEVICE=retinaXX
-
- where XX has to be replaced by 8,16 or 24 corresponding to the
- desired number of BitPlanes. The resolution of the RETINA screen is
- determined from the settings of the RetinaScreenmode program.
-
- If you want to use the RETINA-driver by default, you can do this by
- setting the environment-variable GS_LIB to 'retinaXX'.
-
- After starting Ghostscript with the RETINA device, the page will be
- rendered with the maximum screen size or with the specified
- geometry.
-
- You will observe a remarkable slowdown if you render a picture with
- 8 bit CLUT compared to 24 bit. One reason is, that Ghostscript has
- to maintain the CLUT and eventually do the dithering if it runs out
- of colours. The other reason is a bug in the FillRect()-Function of
- the retina.library which makes rectagle filling impossible in the 8
- bit mode. Instead i had to use DrawLine() to fill rectangles.
-
- This bug is fixed in Version 3.8 of retina.library which is
- contained in MacroSystem's update package V1.2. If you have this (or
- a later) version of the library, Ghostscript will automatically
- detect it and use its faster rendering routines.
-
-
- ILBM DOCUMENTATION
-
- The ILBM driver is a Ghostscript device for converting Postscript to
- the commonly used IFF-ILBM files. This standard file format has been
- defined by Electronics Arts and allows a variable number of
- bitplanes and a simple form of image compression.
-
- There are currently two ILBM devices, which are writing output files
- with a different number of bitplanes, namely the 'ilbm8' device
- which uses a 256 color palette, and the true color 'ilbm24' device
- which writes a 24 bit non-CLUT iff file.
-
- Each mode always uses runlength compression, which in most cases
- makes output files shorter.
-
- There is still a bug in the output routines, which makes the request
- ">>showpage, press <return> to continue<< appear after writing the
- file. You can avoid this by piping NIL: into Ghostscript or setting
- the flag -dNOPAUSE. It may also be possible that multi-page output
- does not work in the current version of there ILBM-driver, i don't
- know if it is allowed to put more than one picture in an ILBM file.
-
- I decided to use the Amiga iffparse.library for writing IFF-files,
- so this implementation has two problems: you can't compile in on
- other machines without a replacement for the iffparse.library. This
- is rather hard to fix, if you really want to compile on a non-Amiga
- platform, you have to rewrite the code.
-
- The other problem can be fixed, it arises from the stream management
- the library uses. It is easy to work with the AmigaDOS functions for
- writing files, but GCC implements a slightly different filesystem
- for compatibility with UN*X. It is possible to use the GCC buffered
- I/O-functions together with the iffparse.library, but the price is
- high: i would have to write assembler inline code, which is not very
- portable nor easy to understand.
-
- So in contrast to other Ghostscript devices, the ILBM-driver uses
- AmigaDOS pathname conventions: full pathnames contain colons, an a
- an initial slash means parent directory, not root directory.
-
-
- BUG REPORTS
-
- Bug reports and improvements are welcome, send them to my address in
- the header (EMail preferred).
-
-
- Have fun with Ghostscript,
-
- Andreas
-
- - -- O
- - -- /
- -- ***/\=+c
- - - /\*\**/\
- \/ / \/<
-
- & Landi